package com.example.k12.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

@Entity(nameInDb = "statistics")
public class StatisticsBean {
    @Property(nameInDb = "balance")
    private double balance = 0.00;

    @Property(nameInDb = "consumeAmount")
    private double consumeAmount = 0.00;

    @Property(nameInDb = "consumeCount")
    private int consumeCount = 0;

    @Id
    @Property(nameInDb = "studentId")
    private String studentId = "";

    @Property(nameInDb = "studentName")
    private String studentName = "";

    @Generated(hash = 1455047160)
    public StatisticsBean(double balance, double consumeAmount, int consumeCount,
            String studentId, String studentName) {
        this.balance = balance;
        this.consumeAmount = consumeAmount;
        this.consumeCount = consumeCount;
        this.studentId = studentId;
        this.studentName = studentName;
    }

    @Generated(hash = 1303279983)
    public StatisticsBean() {
    }

    // Getters and Setters
    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(double consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public int getConsumeCount() {
        return consumeCount;
    }

    public void setConsumeCount(int consumeCount) {
        this.consumeCount = consumeCount;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }
}
